package com.thientan.model

import com.thientan.model.enums.LoaiDuLieu

/**
 * Domain class used to represent entity from table DU_LIEU_HE_THONG
 * @author DINH HONG CHAU
 *
 */
class DuLieuHeThong {

	static constraints = {
		maDuLieu(unique:true, maxSize: 50)
		giaTri(maxSize: 100)
		maDuLieuLienQuan(nullable:true)
	}

	static mapping = {
		table 'DU_LIEU_HE_THONG'
		id generator : 'increment'
		sort giaTri : "asc"
		columns { id column : 'LOAI_DU_LIEU_ID' }
	}

	LoaiDuLieu loaiDuLieu
	String maDuLieu
	String maDuLieuLienQuan
	String giaTri
}
